SynthesizePinchGestureRequest

data class SynthesizePinchGestureRequest(x: Double, y: Double, scaleFactor: Double, relativeSpeed: Int?, gestureSourceType: GestureSourceType?)

Represents request frame that can be used with Input#synthesizePinchGesture operation call.

Synthesizes a pinch gesture over a time period by issuing appropriate touch events.

See also

Constructors

SynthesizePinchGestureRequest
Link copied to clipboard
fun SynthesizePinchGestureRequest(x: Double, y: Double, scaleFactor: Double, relativeSpeed: Int? = null, gestureSourceType: GestureSourceType? = null)

Properties

gestureSourceType
Link copied to clipboard
val gestureSourceType: GestureSourceType? = null
Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).
relativeSpeed
Link copied to clipboard
val relativeSpeed: Int? = null
Relative pointer speed in pixels per second (default: 800).
scaleFactor
Link copied to clipboard
val scaleFactor: Double
Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
x
Link copied to clipboard
val x: Double
X coordinate of the start of the gesture in CSS pixels.
y
Link copied to clipboard
val y: Double
Y coordinate of the start of the gesture in CSS pixels.

Sources

jvm source
Link copied to clipboard